package com.rogo.rogobox.models.data
{
	public class Info
	{
		public var text:String;
		public var origtext:String;
		public var id:Number;
		public var nick:String;
		public var timestamp:int;
		public var head:String;
		public var type:int;
		public var source:RepostInfo;
		public var image:String;
		public var name:String;
		
		public function Info(data:XML)
		{
			name = data.name;
			text = data.text;
			origtext = data.origtext;
			id = Number(data.id);
			nick = data.nick;
			timestamp = int(data.timestamp);
			head = data.head +'/100';
			type = int(data.type);
			if (data.image != '')
				image = data.image;
			
			if (data.source != '')
				source = new RepostInfo(data.source);
		}
	}
}